#include "../../include/exception/DbException.h"

namespace ZY {

    void DbException::_DbException( const string &msg , const int code , const int eno )
    {
        char buff[64];
        string tmp_str;
        int n;
        n = sprintf( buff , "errno:%d" , eno );
        tmp_str.assign( msg );
        tmp_str.append( buff , n );
        Exception::_init(tmp_str,code);
    }

    DbException::~DbException()
    {
        //dtor
    }

}
